## Script (Python) "getModelReviewState"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=modelIdentity=None
##title=
##
# script designed to obtain the Model Workflow Status 
# for use in condition statements within KE pts

# get model object
model = context.getComponentByIdentity( modelIdentity )

# obtain the current workflow 'state'
modelReviewState = context.portal_workflow.getInfoFor( model, 'review_state' )

return modelReviewState
